package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.MarketDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.Market;
import com.cloudbroker.bcs.platform.ltb.middle.service.MarketService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by daibd19671 on 2016/8/20.
 */
@Service
public class MarketServiceImpl extends  TenantServiceImplBase<Market, String>  implements MarketService {

    @Resource
    private MarketDAO marketDAO;


    @Override
    public Market getMarketToken(Market market) {
        return marketDAO.selectToken(market);
    }

    @Override
    public void udpateToken(Market market) {
        marketDAO.udpateToken(market);
    }


    @Override
    protected DAOBase<Market, String> getDAO() {
        return null;
    }
}

